projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a58fb4
)
Johannes Weiner <hannes at saeurebad.de>
author
Glenn Morris
<rgm@gnu.org>
Sun, 23 Sep 2007 02:04:23 +0000
(
02:04
+0000)
committer
Glenn Morris
<rgm@gnu.org>
Sun, 23 Sep 2007 02:04:23 +0000
(
02:04
+0000)
(abs): Define if unknown.
src/lisp.h
patch
|
blob
|
history
diff --git
a/src/lisp.h
b/src/lisp.h
index d5adb8f9e49dad31e50a2a2c457f9b36a9469241..65ea46fae1f603c4c3f89f740378ebf2bbc77675 100644
(file)
--- a/
src/lisp.h
+++ b/
src/lisp.h
@@
-3399,6
+3399,11
@@
extern Lisp_Object Vdirectory_sep_char;
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
+/* Make sure we have abs defined */
+#if !defined(abs)
+#define abs(x) ((x) < 0 ? -(x) : (x))
+#endif
+
/* Return a fixnum or float, depending on whether VAL fits in a Lisp
fixnum. */